﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics.Contracts;

namespace YasharEl.Infrastructure.ObjectFactory.ServiceModel
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class ModuleServiceAttribute : Attribute
    {
        private readonly string _moduleName;

        public ModuleServiceAttribute(string moduleName)
        {
            Contract.Requires<ArgumentNullException>(!string.IsNullOrEmpty(moduleName), "moduleName could not be null or empty.");

            _moduleName = moduleName;
        }

        public string ModuleName
        {
            get { return _moduleName; }
        }
    }
}
